package cn.jisol.ngame.actions.statesync;

import cn.jisol.ngame.actions.statesync.entity.NFrameData;
import cn.jisol.ngame.rpc.NGameRPCClass;
import cn.jisol.ngame.rpc.NGameRPCMethod;
import cn.jisol.ngame.rpc.action.NBackAsync;
import cn.jisol.ngame.sync.NFPSInfo;

@NGameRPCClass
public interface CNStateSyncAction {
    
    //接收服务器消息
    @NGameRPCMethod
    void onReceServerMessage(Object message);
    
    //接收同步数据
    @NGameRPCMethod
    void onReceSyncData(NFPSInfo<NFrameData> data);
    
    //获取最新世界副本
    @NGameRPCMethod
    NBackAsync<Object> nGetSyncWorld();
    
    //Back Demo
    @NGameRPCMethod
    NBackAsync<String> nGetString();
    
}
